package com.guotong.sysUser;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserDao {

    @Select("SELECT * FROM sys_user")
    List<SysUser> findAllUser();

    @Select("SELECT * FROM sys_user where username = #{username}")
    SysUser findByUsername(@Param("username") String username);
}
